package yieldCurve;

/** The data structure to store a point in the yield curve
 *
 */
public class Point {
	double time; // time
	Date date; // date
	double z; // zero coupon rate
	double df; // discount factor
	
	public Point() {
		time = 0;
		date = new Date();
		z = 0;
	}
	
	/** Constructor
	 * 
	 * @param date date point in the curve
	 * @param time time point
	 * @param df discount factor
	 * @param z zero-coupon rate
	 */
	public Point(Date date, double time, double df, double z) {
		this.date = date;
		this.time = time;
		this.df = df;
		this.z = z;
	}
	
	/** for testing
	 * 
	 */
	public String toString() {
		return date + "," + df + "," + z;
	}
}
